]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
[appSwitcher] Close the switcher on Meta_L/R release
authorAdel Gadllah <adel.gadllah@gmail.com>
Sat, 11 Sep 2010 17:01:42 +0000 (19:01 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Sat, 11 Sep 2010 17:01:42 +0000 (19:01 +0200)
The keyReleaseEvent handler does not take into account that a
user might release Alt while still holding shift
(the keycode becomes Meta_L/R in that case).

The result is that the switcher stays open which is unexpected.

https://bugzilla.gnome.org/show_bug.cgi?id=629368

js/ui/altTab.js

index 0b301678a75aa100f9590141f9fed1ff1ec9b718..64173951892a2c27e6eadb2996b5e2a3b6424fd5 100644 (file)
@@ -266,7 +266,7 @@ AltTabPopup.prototype = {
     _keyReleaseEvent : function(actor, event) {
         let keysym = event.get_key_symbol();
 
-        if (keysym == Clutter.Alt_L || keysym == Clutter.Alt_R)
+        if (keysym == Clutter.Alt_L || keysym == Clutter.Alt_R || keysym == Clutter.Meta_L || keysym == Clutter.Meta_R)
             this._finish();
 
         return true;